package com.powernode.springboot.controller;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    //ant风格
    @GetMapping("/{path:[a-z]+}/a?/**/*.do")
    public String testPath(@PathVariable String path, HttpServletRequest request) {
        String requestURI = request.getRequestURI();
        return "path:" + requestURI;
    }
}
